class StsBean {
  var code;
  String requestId;
  String msg;
  Data data;

  StsBean({this.code, this.requestId, this.msg, this.data});

  StsBean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    requestId = json['requestId'];
    msg = json['msg'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['requestId'] = this.requestId;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class Data {
  String securityToken;
  String accessKeySecret;
  String accessKeyId;
  String expiration;

  Data(
      {this.securityToken,
        this.accessKeySecret,
        this.accessKeyId,
        this.expiration});

  Data.fromJson(Map<String, dynamic> json) {
    securityToken = json['securityToken'];
    accessKeySecret = json['accessKeySecret'];
    accessKeyId = json['accessKeyId'];
    expiration = json['expiration'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['securityToken'] = this.securityToken;
    data['accessKeySecret'] = this.accessKeySecret;
    data['accessKeyId'] = this.accessKeyId;
    data['expiration'] = this.expiration;
    return data;
  }
}